package com.qianli.cashmama.trade.client.trade.response;

import com.fqgj.common.api.Page;
import com.qianli.cashmama.trade.client.vo.TradeVO;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/8/3
 * Time: 上午9:40
 */
public class UserTradeListResponse implements Serializable {
    /**
     * 旧的数据格式 待废弃
     */
    private List<TradeVO> tradeList = new ArrayList<>();
    /**
     * 新的数据格式
     */
    private List<TradeInfoRO> tradeInfoROList;

    private Page page;

    public UserTradeListResponse(List<TradeVO> tradeList, Page page) {
        this.page = page;
        this.tradeList = tradeList;
    }

    public UserTradeListResponse(List<TradeVO> tradeList, List<TradeInfoRO> tradeInfoROList, Page page) {
        this.tradeList = tradeList;
        this.tradeInfoROList = tradeInfoROList;
        this.page = page;
    }

    public UserTradeListResponse(List<TradeVO> tradeList) {
        this.page = new Page();
        this.tradeList = tradeList;
    }

    public List<TradeVO> getTradeList() {
        return tradeList;
    }

    public UserTradeListResponse setTradeList(List<TradeVO> tradeList) {
        this.tradeList = tradeList;
        return this;
    }

    public Page getPage() {
        return page;
    }

    public UserTradeListResponse setPage(Page page) {
        this.page = page;
        return this;
    }

    public List<TradeInfoRO> getTradeInfoROList() {
        return tradeInfoROList;
    }

    public UserTradeListResponse setTradeInfoROList(List<TradeInfoRO> tradeInfoROList) {
        this.tradeInfoROList = tradeInfoROList;
        return this;
    }
}
